﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Practice_one
{
    public partial class Homework01 : Form
    {
        public Homework01()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //选中哪个单选按钮,则哪个单选按钮的Checked的值为true
            if (btn_01.Checked) 
            {
                MessageBox.Show("已吃了饭");
            }
            else
            {
                MessageBox.Show("还没吃");
            }
        }
    }
}
